564. Find The Closest Palindrome - Python, Solution Explained